package com.pig4cloud.pig.itinerary.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.itinerary.api.entity.TrItinerary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

@Mapper
public interface TrItineraryMapper extends BaseMapper<TrItinerary>{

	IPage<TrItinerary> selectItineraryByCondition(
			@Param("page") Page page,
			@Param("itineraryName") String itineraryName,  // 名称必须完全匹配
			@Param("createBy") String createBy
	);

	int removeByItineraryId(Long itineraryId);

	boolean removeByItineraryIds(@Param("itineraryIds") Long[] itineraryIds);
}
